package com.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-04-21 16:45
 * FileName: BlogMapper
 * Description: 博客标签数据层
 */
@Repository(value ="TagMapper")
@Mapper
public interface TagMapper extends BaseMapper<Tag> {

    //查询博客所有标签及条目数
    List<Tag> queryTagAll();

    //排序查看博客所有标签
    List<Tag> queryTagPageAll(String queryString);
}
